.PHONY:all
all: parser server http_server

PARSER=parser
SERVER=server
HTTP_SERVER=http_server
CC=g++


$(PARSER):parser.cc
	$(CC) -o $@ $^ -std=c++17 -lboost_system -lboost_filesystem -lpthread
$(SERVER):server.cc
	$(CC) -o $@ $^ -std=c++17 -ljsoncpp
$(HTTP_SERVER):http_server.cc
	$(CC) -o $@ $^ -std=c++17 -lpthread -lboost_system -lboost_filesystem -ljsoncpp


.PHONY:clean
clean:
	rm -f parser server http_server